package com.yinhai.model.tree;

import java.text.CollationKey;
import java.text.Collator;
import java.util.Comparator;

public class CheckCodeComparator implements Comparator<String> {

	Collator collator = Collator.getInstance();
	
	public int compare(String arg1, String arg2) {
		CollationKey key1 = collator.getCollationKey(arg1);
		CollationKey key2 = collator.getCollationKey(arg2);
		return key1.compareTo(key2);
	}
}
